(function (window) {
	function Wire(fromX, fromY, toX, toY, stroke) {
		this.from = [fromX,fromY];
		this.to = [toX, toY];
		this.stroke = stroke;
		this.initialize(this.from,this.to,this.stroke);
	}

	Wire.prototype = new Shape();

	Wire.prototype.Shape_initialize = Wire.prototype.initialize;

	/* Constructor */
	Wire.prototype.initialize = function(from,to,stroke) {
		this.Shape_initialize();
		this.activate(from,to,stroke);
	}

	/* Public Methods */
	Wire.prototype.getShape = function(from,to,stroke) {
		this.graphics.clear();
		//wire
		this.graphics.setStrokeStyle(stroke,"round","round");
		this.graphics.beginStroke("#000");
		this.graphics.moveTo(from[0],from[1]).lineTo(to[0],to[1]);
		this.graphics.endStroke();
	}

	Wire.prototype.activate = function(from,to,stroke) {
		this.getShape(from,to,stroke);
	}

	Wire.prototype.tick = function() {
		//do nothing
	}

window.Wire = Wire;
}(window));